<section class="content-header">
      <h1>
        Dashboard
        <small>Control panel</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Dashboard</li>
      </ol>
    </section>

    <!-- Main content -->    
    <section class="content">
      <div class="box box-info" ng-controller="groupSetCtr">
        <div class="box-header with-border">
          <h3 class="box-title">{{title}}</h3>
        </div>
        <!-- /.box-header -->    
        <!-- form start -->    
        <form class="form-horizontal">
          <div class="box-body">

            <div class="form-group">
              <label for="groupName" class="col-sm-2 control-label">分组名称</label>

              <div class="col-sm-10">
                <input type="text" class="form-control" id="groupName" ng-model='group.name' placeholder="分组名称"></div>
            </div>

            <div class="form-group">
              <label for="selectProject" class="col-sm-2 control-label">选择分组</label>

              <div class="col-sm-10">
                <select multiple="multiple" class="form-control" id="selectProject" ng-model="group.projects" ng-options="m.name for m in projects" >
                  <option value="">-- 请选择 --</option>
                </select>
              </div>
            </div>
            <div class="form-group" ng-show="group.projects.length">
              <div class="col-sm-offset-2 col-sm-10">
                <table class="table table-bordered">
                  <tbody>
                    <tr>
                      <th class="text-center">项目名称</th>
                      <th class="text-center">start_url</th>
                      <th class="text-center">调整优先级</th>
                      <th class="text-center">操作</th>
                    </tr>
                    <tr ng-repeat="project in group.projects">
                      <td class="text-center">{{project.name}}</td>
                      <td class="text-center">start_url。。。</td>
                      <td class="text-center">
                        <span class="label label-info" ng-click="moveUp(project)">上移</span>
                        <span class="label label-info" ng-click="moveDown(project)">下移</span>
                      </td>
                      <td class="text-center">
                        <span class="label label-info" ng-click="showGroup(project)">详情</span>
                        <span class="label label-danger" ng-click="deleteProject(project)">删除</span>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </form>

        <div class="box-footer text-center">
          <button type="submit" class="btn btn-info" ng-click="groupSetSave(group)"><i class='fa fa-save'></i>保存</button>
        </div>
        <!-- /.box-footer --> </div>

    </section>
    <!-- /.content -->      

